package cn.yuli.sources;

import java.util.Observable;

import cn.yuli.data.Data;
/**
 * 观察者模式：数据源类，继承了可观察者类
 * @author yuli
 *
 */
public class SourcesData extends Observable {
	private Data data;
	public void chenged(){
		setChanged();
		notifyObservers(data);
	}
	public void setData(Data data){
		this.data = data;
		chenged();
	}
}
